home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / frame_44 / PlaceObject2_2203_588 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2011-06-09  |  519 b   |  25 lines

  1. onClipEvent(enterFrame){
  2.    if(this._name != "nade")
  3.    {
  4.       if(this._currentframe == 1)
  5.       {
  6.          y_speed -= 2;
  7.          this._x += x_speed;
  8.          this._y -= y_speed;
  9.          if(_root.ravNogo.hitTest(this._x,this._y,true))
  10.          {
  11.             this.gotoAndStop(2);
  12.          }
  13.       }
  14.    }
  15.    i = 1;
  16.    while(i < 20)
  17.    {
  18.       if(this.hitTest(_root.ravNogo["ob" + i].targ))
  19.       {
  20.          _root.ravNogo["ob" + i].hp -= 2 * ((_root.even9 + 1) / 1.5);
  21.       }
  22.       i++;
  23.    }
  24. }
  25.